package com.weixing.mall.provider.model.vo.report.advertisement;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.provider.model.enums.AdvertsingEunm;
import com.weixing.mall.provider.model.enums.IsPageSiteEunm;
import com.weixing.mall.provider.support.excel.EnumConverter.AdvertisingStatusConverter;
import com.weixing.mall.provider.support.excel.EnumConverter.PageSiteConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 广告vo
 *
 * @author Small
 * @since 2019-11-18
 */
@Data
@ApiModel(value="AdvertisementDetailVo", description="广告部-01广告")
public class AdvertisementDetailVo {
    @ApiModelProperty(value = "广告Id")
    @ExcelIgnore
    private Long id;
    @ApiModelProperty(value = "分类(平台分类)")
    @ExcelProperty("平台分类")
    private String mediaName;
    @ApiModelProperty(value = "广告平台")
    @ExcelProperty("广告平台")
    private String plateformName;
    @ApiModelProperty(value = "平台号")
    @ExcelProperty("平台号")
    private String chatNum;
    @ApiModelProperty(value = "版面位置")
    @ExcelProperty(value = "版面位置",converter = PageSiteConverter.class)
    private IsPageSiteEunm pageSite;
    @ApiModelProperty(value = "标价")
    @ExcelProperty("标价")
    private BigDecimal price;
    @ApiModelProperty(value = "投放日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("投放日期")
    private Date launchDate;
    @ApiModelProperty(value = "预约截止日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("预约截止日期")
    private Date endOrderDate;
    @ApiModelProperty(value = "预约者")
    @ExcelProperty("预约者")
    private String orderedAgent;
    @ApiModelProperty(value = "已排版(广告状态)")
    @ExcelProperty(value = "广告状态",converter = AdvertisingStatusConverter.class)
    private AdvertsingEunm staus;
    @ApiModelProperty(value = "文章标题")
    @ExcelProperty("文章标题")
    private String articleTitle;
    @ApiModelProperty(value = "阅读量")
    @ExcelProperty("阅读量")
    private Integer readAmount;
    @ApiModelProperty(value = "粉丝获得数量")
    @ExcelProperty("粉丝获得数量")
    private Integer fans;

}
